﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO; // Jobba med filer

namespace MediaRegister
{
    public partial class Media : Form
    {
        private FormKöpMobil km = new FormKöpMobil();
        private FormKöpData kd = new FormKöpData();
        private FormSäljData sd = new FormSäljData();
        private FormSäljMobil sm = new FormSäljMobil();
        private FormUpplåsning upp = new FormUpplåsning();
        private FormRepData rd = new FormRepData();
        private FormRepMobil rm = new FormRepMobil();
        private Mail m = new Mail();
        private NyKund nk = new NyKund();

        public Media()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void avslutaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

    

        private void köpToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void dataToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (kd.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void mobilToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (km.ShowDialog() == DialogResult.OK)
            {
            }
        }


        private void låsaUppToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (upp.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void dataToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (rd.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void mobilToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (rm.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void mailaKundenToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (m.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void nyKundToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (nk.ShowDialog() == DialogResult.OK)
            {
            }
        }

       
        private void statusStrip1_ItemClicked_1(object sender, ToolStripItemClickedEventArgs e)
        {
            toolStripStatusLabel1.Text = DateTime.Now.ToShortDateString();
            toolStripStatusLabel2.Text = DateTime.Now.ToShortTimeString();
                
        }

        private void mobilToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (sm.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void dataToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (sd.ShowDialog() == DialogResult.OK)
            {
            }
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = DateTime.Now.ToShortDateString();
            toolStripStatusLabel2.Text = DateTime.Now.ToShortTimeString();
        }

        
    }

}
